package com.shen.web.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * MyServlet2
 * @author shen
 *
 */
public class MyServlet2 extends HttpServlet {
	private static final long serialVersionUID = 853222045934198771L;
	
	private static Logger logger = LoggerFactory.getLogger(MyServlet2.class);
	
	@Override
	public void init() throws ServletException {
		logger.debug(" ------ MyServlet2 init ----------");
		super.init();
	}
	
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		logger.debug(" ------ MyServlet2 doGet ----------");
		super.doGet(req, resp);
	}

	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		logger.debug(" ------ MyServlet2 doPost ----------");
		super.doPost(req, resp);
	}

	@Override
	public void destroy() {
		logger.debug(" ------ MyServlet2 destroy ----------");
		super.destroy();
	}

}
